<html>
<head><meta charset="utf-8"><title>efficient code reuse · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html">efficient code reuse</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="245608504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245608504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245608504">(Jul 11 2021 at 14:02)</a>:</h4>
<p>now that 1.0 is out, is rust going to solve <a href="https://github.com/rust-lang/rfcs/issues/349">https://github.com/rust-lang/rfcs/issues/349</a> soon?</p>



<a name="245608697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245608697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245608697">(Jul 11 2021 at 14:07)</a>:</h4>
<p>1.0 came out over 6 years ago</p>



<a name="245609499"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245609499" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245609499">(Jul 11 2021 at 14:25)</a>:</h4>
<p>i know</p>



<a name="245611029"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245611029" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ibraheem Ahmed <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245611029">(Jul 11 2021 at 15:00)</a>:</h4>
<p><span class="user-mention silent" data-user-id="211727">Jonas Schievink  [he/him]</span> <a href="#narrow/stream/122651-general/topic/efficient.20code.20reuse/near/245608697">said</a>:</p>
<blockquote>
<p>1.0 came out over 6 years ago</p>
</blockquote>
<p>I think that's the point <span aria-label="wink" class="emoji emoji-1f609" role="img" title="wink">:wink:</span></p>



<a name="245611307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245611307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ibraheem Ahmed <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245611307">(Jul 11 2021 at 15:02)</a>:</h4>
<p>There was some work towards a form of efficient code reuse with the delegation rfc, but unfortunately it was closed due to the lang team not having enough bandwidth. So while it is an important issue, there are more pressing issues to be worked on right now.</p>



<a name="245611325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245611325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245611325">(Jul 11 2021 at 15:03)</a>:</h4>
<p>(do you mean lang team? core doesn't handle changes to the language)</p>



<a name="245611424"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245611424" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ibraheem Ahmed <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245611424">(Jul 11 2021 at 15:04)</a>:</h4>
<p>Uh, yes, sorry.</p>



<a name="245613494"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245613494" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245613494">(Jul 11 2021 at 15:57)</a>:</h4>
<p>how does stuff get prioritized?</p>



<a name="245613829"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245613829" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245613829">(Jul 11 2021 at 16:04)</a>:</h4>
<p>what exactly are you asking for? the linked issue is incredibly broad</p>



<a name="245635965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245635965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> devsnek <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245635965">(Jul 12 2021 at 00:55)</a>:</h4>
<p>in a word, inheritance</p>



<a name="245676334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/245676334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#245676334">(Jul 12 2021 at 12:02)</a>:</h4>
<p>I'd expect that inheritance (as most people think of it) will not come to Rust for a long time (IMO ever). That's why Ibraheem mentions delegation, which is my hope for <em>programmer-efficient</em> code reuse.</p>



<a name="248730093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/efficient%20code%20reuse/near/248730093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charlie He <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/efficient.20code.20reuse.html#248730093">(Aug 07 2021 at 18:50)</a>:</h4>
<p>If there's delegation, you can simply implement inheritance by delegating Base methods with a Box&lt;Base&gt;...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>